import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'sys_page_column' })
export default class SysPageColumn extends BaseEntity {
  @Column({ name: 'user_id', type: 'varchar' })
  @ApiProperty()
  userId: string;

  @Column({ name: 'selected',type: 'float' })
  @ApiProperty()
  selected: number;

  @Column({ name: 'fixed_position',type: 'float' })
  @ApiProperty()
  fixedPosition: number;

  @Column({ name: 'field', type: 'varchar', length: 50 })
  @ApiProperty()
  field: string;

  @Column({ name: 'url', type: 'varchar', length: 50 })
  @ApiProperty()
  url: string;
}
